﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using RRTWSEntityDSD.Dominio;
using RRTWSNegocioDSD.Dao;

namespace RRTWSDSD.ServiceEntidad
{
    /// <summary>
    /// Summary description for UbigeoServices
    /// </summary>
    [WebService(Namespace = "http://rtt.edu.upc.com.pe/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class UbigeoServices : System.Web.Services.WebService
    {

        public static UbigeoDAO ubigeoDAO = new UbigeoDAO();

        [WebMethod]
        public List<Ubigeo> listarUbigeoPorNombre(string inicialnombre)
        {
            return ubigeoDAO.getListarUbigeoPorNombre(inicialnombre);
        }
    }
}
